Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More guards for the FiringarcHandler #5807

Merged
merged 2 commits into from
Jul 28, 2024

Conversation

SJuliez
Copy link
Member

@SJuliez SJuliez commented Jul 27, 2024

I think this fixes #5789

The fact that our Entities get constantly replaced by server-sent new objects leads to problems wherever Entities and Mounteds are cached. Must guard against all things, including that the weapon is not found on the entity.

@SJuliez SJuliez merged commit 658662e into MegaMek:master Jul 28, 2024
3 checks passed
@SJuliez SJuliez deleted the firingarc-null-guard branch August 1, 2024 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NPE Cannot invoke "megamek.common.Mounted.getType()" because "mounted" is null
2 participants